package ioc10;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SomeBean implements ApplicationContextAware {
    ApplicationContext ac;
    @Override
    public void setApplicationContext(ApplicationContext ac) throws BeansException {
        this.ac = ac;
    }
   /* public ApplicationContext doSome() {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc10/spring.xml");
        return ac;
    }*/
   public void doSome(){
       System.out.println("ac="+ac);
   }
}
